package com.ktwlsoft.archivemanage.payload.instruction;

import com.ktwlsoft.archivemanage.domain.dao.entity.Department;
import com.ktwlsoft.archivemanage.domain.dao.entity.InstructionDic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 指南导航修改
 *
 * @author zhuhe on 2019/11/1 9:30
 * @version 1.0
 */
@ApiModel("指南字典修改")
@Getter
@Setter
public class InstrctionDicUpdateRequest {

    /**指南字典id**/
    @ApiModelProperty("指南字典id")
    @NotNull(message = "指南字典id不能为空")
    private Long id;

    /**指南字典名称**/
    @ApiModelProperty("指南字典名称")
    @Size(max = 10, message = "指南字典名称超长")
    @NotNull(message = "指南字典名称不能为空")
    private String name;

    /**上级id**/
    @ApiModelProperty("上级id")
    private Long pid;

    /**指南字典层级**/
    @ApiModelProperty("指南字典层级")
    private int level;

    /**业务来源**/
    @ApiModelProperty("业务来源(MANAGE(管理端), CUSTOM(用户端)")
    @NotNull(message = "业务来源不能为空")
    private InstructionDic.BusinessFrom businessFrom;
}